package day5;
import java.io.*;
/**
 * @author oldliu
 * @since 1.0
 */
public class FileTest4 {
    public static void main(String[] args) {
        File f2=new File("");
        System.out.println(f2.getAbsolutePath());
        File f=new File("../hmjh/hs_err_pid1208.log");//当前目录
        System.out.println(f.getAbsolutePath());
        System.out.println(f.length());
        System.out.println(f.toURI());

        File f3=new File("e:/temp/java75/namelist.txt");
        if(!f3.exists()) {
            try {
                f3.createNewFile();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
